* {
    margin: 0;
    padding: 0;
    text-decoration: none;
}

li {
    list-style: none;
}

ul {
    margin: 0;
    padding: 0;
}

body {
    background-color: #f3f5f7;
}

.w {
    margin: auto;
    width: 1200px;
}

a {
    text-decoration: none;
}

.headline {
    background-color: #fff;
}

.header {
    margin: 30px auto;
    text-align: center;
    /* background-color: pink; */
    width: 1200px;
    overflow: hidden;
}

.logo {
    float: left;
    margin-right: 30px;
    margin-right: 65px;
}

.logo img {
    height: 42px;
    vertical-align: middle;
    /* 关键：改变对齐方式，消除底部间隙 */
}

.nav {
    float: left;
    margin-right: 70px;
}

.nav ul {
    overflow: hidden;
}

.nav ul li {
    float: left;
}

.nav ul li a {
    display: block;
    height: 42px;
    padding: 0 10px;
    margin: 0 15px;
    line-height: 42px;
    font-size: 18px;
    color: #050505;
}

.nav ul li a:hover {
    border-bottom: #00a4ff 2px solid;
}

.search {
    float: left;
    border: 0;
}

.search input {
    float: left;
    width: 345px;
    height: 40px;
    border: #00a4ff 1px solid;
    border-right: 0;
    font-size: 14px;
    color: #bfbfbf;
    padding-left: 15px;
}

.search button {
    float: left;
    width: 50px;
    height: 42px;
    background-color: #00a4ff;
    border: 0;
}

.touxiang {
    position: relative;
    top: 7px;
    float: left;
    width: 30px;
    height: 30px;
    background-color: #000000;
    border-radius: 50%;
    margin-left: 30px;
}

.username {
    float: left;
    font-size: 14px;
    margin-left: 5px;
}

.username a {
    display: block;
    height: 42px;
    line-height: 42px;
    color: #666;
}


/* 轮播图区域css */

.banner {
    height: 420px;
    background-color: #1c036c;
}

.bannermain {
    background: url(./img/banner2.png) no-repeat top center;
    height: 420px;
    width: 1200px;
    margin: auto;
}

.bannerleft {
    float: left;
    width: 190px;
    height: 420px;
    background-color: rgba(0, 0, 0, 0.5);
}

.bannerleft ul li {
    padding: 0 20px;
    height: 45px;
    line-height: 45px;
}

.bannerleft ul li a {
    font-size: 14px;
    color: #fff;
}

.bannerleft ul li a {
    display: block;
}

.bannerleft ul li a span {
    float: right;
}

.bannerleft ul li a:hover {
    color: #00b4ff;
}

.bannerright {
    float: right;
    width: 230px;
    height: 300px;
    background-color: #fff;
    margin-top: 50px;
}

.bannerright h2 {
    height: 48px;
    font-size: 18px;
    background-color: #9bceea;
    text-align: center;
    line-height: 48px;
    color: #fff;
}

.bd {
    padding: 0 20px;
}

.bd ul li {
    padding: 14px 0;
    border-bottom: solid 1px #ccc;
}

.bd ul li h4 {
    font-size: 16px;
    color: #4e4e4e;
}

.bd ul li p {
    font-size: 12px;
    color: #a5a5a5;
}

.bd .more {
    display: block;
    height: 38px;
    border: #00a4ff 1px solid;
    text-align: center;
    line-height: 38px;
    color: #00a4ff;
    font-size: 16px;
    font-weight: 700;
}


/* 精品推荐模块 */

.goods {
    height: 60px;
    background-color: #fff;
    box-shadow: 0 2px 3px 3px rgba(0, 0, 0, 0.1);
    width: 1200px;
    margin: auto;
    margin-top: 10px;
    line-height: 60px;
}

.goods h3 {
    float: left;
    margin-left: 30px;
    font-size: 16px;
    color: #00a4ff;
}

.goods .goods-item {
    float: left;
    margin-left: 30px;
}

.goods .goods-item li {
    float: left;
}

.goods .goods-item li a {
    padding: 0 30px;
    color: #000000;
    font-size: 16px;
    border-left: #ccc 1px solid;
}

.goods .mod {
    float: right;
    margin-right: 30px;
    font-size: 14px;
    color: #00a4ff;
}

.box {
    margin-top: 30px;
}

.box-hd {
    height: 45px;
}

.box-hd h3 {
    float: left;
    font-style: 20px;
    color: #494949;
}

.box-hd a {
    float: right;
    font-style: 12px;
    color: #a5a5a5;
    margin-top: 10px;
    margin-right: 30px;
}

.box-bd ul {
    overflow: hidden;
    width: 1225px;
}


/* 将li的父级修改得足够宽一行能装五个盒子 */

.box-bd ul li {
    position: relative;
    float: left;
    margin-right: 15px;
    margin-bottom: 15px;
    width: 228px;
    height: 270px;
    background-color: white;
}

.box-bd ul li .news {
    width: 40px;
    height: 20px;
    position: absolute;
    top: 10px;
    right: -4px;
}

.box-bd ul li img {
    width: 100%;
}

.box-bd ul li h4 {
    margin: 20px 20px 20px 25px;
    font-size: 14px;
    color: #050505;
    font-weight: 400;
}

.box-bd .info {
    margin: 0 20px 0 25px;
    font-size: 12px;
    color: #999;
}

.box-bd .info span {
    color: #ff7c2d;
}


/* footer部分样式 */

.footer {
    height: 250px;
    background-color: white;
}

.footer .w {
    padding: 35px;
}

.copyright {
    float: left;
}

.copyright p {
    margin: 20px 0 15px;
    font-size: 12px;
    color: #666;
}

.footer .copyright a {
    display: block;
    width: 120px;
    height: 36px;
    border: #00a4ff 1px solid;
    text-align: center;
    line-height: 36px;
    font-size: 16px;
    color: #00a4ff;
}

.links {
    float: right;
}

.links dl {
    float: left;
    margin-left: 100px;
}

.links dl dt {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.links dl dd a {
    color: #333;
    font-size: 12px;
}
